[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
TIME Type
Function
Declare one or more variables of type time.
Syntax
TIME var|arr(s[,s[,s]])[,var|arr(s[,s[,s]])]
var - The name of a variable to declare. Must start with a letter
[A-Z] which may be followed by letters, digits [0-9] or the
underscore [_]. May be of any length but only the first 32
characters are used.
arr - The name of an array variable to declare. The same naming
conventions as var are used.
s - The size (0-based) of an array variable dimension. Any
constant integer expression is allowed.
Remarks
TIME variables are stored as seconds elapsed since midnight. Valid
times are 0 (00:00:00) through 86399 (23:59:59). It is stored internally
as a four byte unsigned long integer. If a TIME is assigned to or from
an INTEGER type then the seconds since midnight (0-86399) is assigned.
If a TIME is assigned to a STRING type then it is automatically
converted to the following format: "HH:MM:SS", where HH is the two
digit hour (00-23), MM is the two digit minute (00-59), and SS is the two
digit second (00-59). If a foreign language is in use that uses a
different time format (for example, "HH.MM.SS") then that will be taken
into account. If a STRING is assigned to a TIME then PPL will do it's
best to convert the string back to the appropriate time. All other
types, when assigned to or from a TIME, will be converted to an INTEGER
first before being assigned to or from the TIME type.
Examples
TIME tob, now, pageHours(2), hourList(24)
See Also:
BOOLEAN
DATE
INTEGER
MONEY
STRING
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson